package top.boking.domain;

import java.util.Date;

public class Student {
    private Integer S;
    private String Sname;
    private Date Sage;
    private String Ssex;
    private Integer cid;
    private Classs clas;

    public Classs getClas() {
        return clas;
    }

    public void setClas(Classs clas) {
        this.clas = clas;
    }

    public Student() {
    }

    public Student(Integer s) {
        S = s;
    }

    public Student(Integer s, String sname, Date sage, String ssex, Integer cid) {
        S = s;
        Sname = sname;
        Sage = sage;
        Ssex = ssex;
        this.cid = cid;
    }

    public Integer getS() {
        return S;
    }

    public void setS(Integer s) {
        S = s;
    }

    public String getSname() {
        return Sname;
    }

    public void setSname(String sname) {
        Sname = sname;
    }

    public Date getSage() {
        return Sage;
    }

    public void setSage(Date sage) {
        Sage = sage;
    }

    public String getSsex() {
        return Ssex;
    }
    public void setSsex(String ssex) {
        Ssex = ssex;
    }

    public Integer getCid() {
        return cid;
    }

    public void setCid(Integer cid) {
        this.cid = cid;
    }

    @Override
    public String toString() {
        return "Student{" +
                "S=" + S +
                ", Sname='" + Sname + '\'' +
                ", Sage=" + Sage +
                ", Ssex='" + Ssex + '\'' +
                ", cid=" + cid +
                ", classs=" + clas +
                '}';
    }
}
